package com.example.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 问诊记录
 * </p>
 *
 * @author wyx
 * @since 2025-03-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("posts")
@ApiModel(value="Posts对象", description="问诊记录")
public class Posts implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "问诊记录id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "问诊记录内容")
    @TableField("posts_content")
    private String postsContent;

    @ApiModelProperty(value = "描述图片")
    @TableField("posts_image")
    private String postsImage;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "医生id")
    @TableField("publisher")
    private Integer publisher;

    @ApiModelProperty(value = "挂号帖id")
    @TableField("registration_id")
    private Integer registrationId;

    @ApiModelProperty(value = "医生-用户-发表-0医生-1用户")
    @TableField("publisher_type")
    private Integer publisherType;


}
